using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MSRI.DesktopAgent
{
    public partial class Config : Form
    {
        public Config()
        {
            InitializeComponent();
        }

        private void Cancelbutton_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.Reload();
            this.Hide();
            ((AgentForm)this.Tag).Show();
        }

        private void Config_FormClosed(object sender, FormClosedEventArgs e)
        {
            Properties.Settings.Default.Reload();
            ((AgentForm)this.Tag).Show();
        }

        private void SaveSettingsButton_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.Save();
            this.Hide();
            ((AgentForm)this.Tag).Show();
        }
    }
}